package demo_table.bean;

import java.util.ArrayList;
import java.util.List;

/**
 * 班级类
 */
public class ClassBean {
    /**
     * 班级编号
     */
    private Integer classId;
    /**
     * 班级的名字
     */
    private String name;
    /**
     * 包含的学生
     */
    private List<StudentBean> students = new ArrayList<StudentBean>();

    public  ClassBean(){


    }

    public ClassBean(Integer classId, String name) {
        this.classId = classId;
        this.name = name;
    }

    public Integer getClassId() {
        return classId;
    }

    public void setClassId(Integer classId) {
        this.classId = classId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<StudentBean> getStudents() {
        return students;
    }

    public void setStudents(List<StudentBean> students) {
        this.students = students;
    }

    @Override
    public String toString() {
        return  this.name;
    }
}
